package com.zhuiyun.pm.sys.order.service.impl;

import com.zhuiyun.pm.client.order.entity.ClientOrder;
import com.zhuiyun.pm.client.order.mapper.OrderMapper;
import com.zhuiyun.pm.result.CommonResult;
import com.zhuiyun.pm.sys.order.mapper.SysOrderMapper;
import com.zhuiyun.pm.sys.order.service.SysOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName SysOrderServiceImpl
 * @Description TODO
 * @Author lzy
 * @Date 2023/3/13 9:58
 **/
@Service
public class SysOrderServiceImpl implements SysOrderService {

    @Autowired
    SysOrderMapper sysOrderMapper;

    @Autowired
    OrderMapper orderMapper;


    /**
    * @Description 获取全部订单列表信息
    * @Author lzy
    * @Date 2023/3/13 11:46
    * @Return com.zhuiyun.pm.result.CommonResult
    */
    @Override
    public CommonResult getSysOrderListAll() {
        ClientOrder clientOrder = new ClientOrder();
        clientOrder.setDelFlag(0);
        List<ClientOrder> orderList = orderMapper.select(clientOrder);
        return CommonResult.ok(orderList);
    }
}
